home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / c1lookup.zip / LOOKUP.C01
Text File  |  1991-09-02  |  21KB  |  506 lines

  1.  
  2.  
  3.                       L O O K U P    +    R C R O S R E F
  4.                       ~~~~~~~~~~~         ~~~~~~~~~~~~~~~
  5.  
  6.             The FWKCS(TM) Contents_Signature System, Version 1.13,
  7.         provides a special way for Channel 1 Communications to help
  8.         you. "Lookup" provides you with a quick, easy way to find out
  9.         if we have any file which matches a particular file that you
  10.         have. This matching is tested quickly, using contents_signatures
  11.         which have much greater resolution than is provided by the
  12.         older 32_bit CRCs.
  13.  
  14.             You can then use Rcrosref to follow up on any contents_
  15.         signature cross_references which we may provide in replying to
  16.         your Lookup inquiry.
  17.  
  18.         To use this important capability, do these steps:
  19.  
  20.             1.  download FWKCS113.ZIP.
  21.  
  22.             2.  PKUNZIP FWKCS113 LOOKUP.* <enter>
  23.  
  24.             3.  PKUNZIP FWKCS113 RCROSREF.BAT <enter>
  25.  
  26.             4.  PKUNZIP FWKCS113 FWKCS.COM <enter>
  27.  
  28.             5.  PKUNZIP FWKCS113 REGISTER.DOC <enter>
  29.  
  30.         After you have done steps 1-5, for on_line help,
  31.  
  32.             type     LOOKUP /* <enter>
  33.  
  34.                      RCROSREF /* <enter>
  35.  
  36.         These two commands, above, will put instructions onto the
  37.         screen, with an example you can use while you make your entry.
  38.  
  39.         Important:  If you wish to install the FWKCS(TM) Contents_
  40.                     Signature System on your own computer,
  41.  
  42.                       first do    PKUNZIP FWKCS113 GO.BAT <enter>
  43.  
  44.                        then do    GO <enter>
  45.  
  46.                     and then follow the instructions on the screen.
  47.  
  48.                     Do not remove Dr. Kantor's Authenticity Verification
  49.                     stamp from the FWKCS113.ZIP zipfile.
  50.  
  51.                     When you unzip a file from Dr. Kantor's zipfile,
  52.                     always give at least part of the filename, as in
  53.                     steps 2 - 5.  Always specify at least one letter or
  54.                     digit in the filename before you use an asterisk (*).
  55.  
  56.                     After you have tested this software, register your
  57.                     copy of FWKCS as explained in REGISTER.DOC.
  58.  
  59.         "Lookup" helps you search for material on Channel 1:
  60.  
  61.             For a plain file, this ability to find matching file(s)
  62.         does not depend on the name or date of the file.
  63.  
  64.             For a zipfile, this ability to find matching file(s) does
  65.         not depend on the name or date of the zipfile, the amount of
  66.         compression of different files in it, the names or dates of the
  67.         files in it, file comments, the zipfile comment, nor on the
  68.         order in which the files appear in the zipfile.
  69.  
  70.             Before you upload a file or a zipfile to Channel 1, you can
  71.         upload an "inquiry file" which Lookup makes for you. We can
  72.         quickly tell you if we already have any of that material in
  73.         our public zipfiles, and, if so, in what zipfile(s) you can
  74.         find that material, and by what name it is called in each of
  75.         those places (which can be a different name in each place).
  76.         You don't have to waste your time or run up your telephone bill
  77.         uploading a file we already have.
  78.  
  79.             Before you lose sleep looking for the missing instructions
  80.         for a computer game that also got renamed along the way, you
  81.         can use Lookup to look for the whole package on Channel 1 -- in
  82.         seconds.
  83.  
  84.             "Lookup" and FWKCS work together to let you use Channel 1
  85.         as a 6 Gigabyte high_speed reference library, from the comfort
  86.         of your home or office, or from a portable computer -- even if
  87.         you don't know the name of what you are looking up!
  88.  
  89.  
  90.         How to use Lookup
  91.         ~~~~~~~~~~~~~~~~~
  92.  
  93.             You just type
  94.  
  95.                   LOOKUP FILENAME.EXE T1045.ZIP <enter>
  96.  
  97.             where
  98.                     FILENAME.EXE  is the full filename and extension of
  99.                                   the file you want to look up
  100.  
  101.                     T1045.ZIP     is any name you want to make up, to
  102.                                   which you add the extension .ZIP
  103.  
  104.                                   (if the file you want to look up is
  105.                                   located in the same directory with
  106.                                   the output file, then the output file
  107.                                   must have a different name. For a way
  108.                                   around this, see Example 4, below.)
  109.  
  110.             "Lookup" prepares a special output file, with the name you
  111.         choose.  You then call Channel 1, and upload the special file
  112.         that Lookup made.
  113.  
  114.             Channel 1 will tell you that the upload "failed" -- that
  115.         means that you don't get any upload credit for having sent that
  116.         special file -- but we will send you a special message prepared
  117.         here by FWKCS, telling you whether we found anything which has
  118.         matching contents_signature(s), and, if so, in what zipfile(s).
  119.         The inquiry file you uploaded is automatically deleted, so that
  120.         you can use the filename again.
  121.  
  122.             It will display your input item, and below that either a
  123.         line which says "did not find cs_match", or two or more lines
  124.         which say something like, for example,
  125.  
  126.         found:
  127.          FILENAME.EXT ZIPFILNM.ZIP D:
  128.         |            |            |
  129.         1      2     3     4      5 6
  130.  
  131.         At these locations 1...6, you may see:
  132.  
  133.         1. lower_case letters used as flags:
  134.  
  135.            w  wipe (remove if found in non_AV zipfiles): for example,
  136.               a known ad;
  137.  
  138.            x  exclude (reject file or zipfile): for example, known
  139.               commercial software (don't upload a file for which you
  140.               receive such an x flag, because it will be rejected);
  141.  
  142.            others are listed in FWKCS113.REF under Special Column_17
  143.            Flags.
  144.  
  145.         2. the name of a file in a zipfile, in which case the zipfile
  146.            name is in location 4; or
  147.  
  148.            the name of a zipfile, in which case "z   cs" appears in
  149.            location 4; or
  150.  
  151.            the name of a non_zip file, in which case "f cs" appears in
  152.            location 4.
  153.  
  154.         3. lower_case letters used to indicate Authenticity
  155.            Verification and/or encryption:
  156.  
  157.            a  the file in 2 has authenticity verification in a zipfile,
  158.               in which case the zipfile name appears in 4 and has a
  159.               lower_case v in location 5
  160.  
  161.            p  the file in 2 is an apparently encrypted ("private") file
  162.               in a zipfile
  163.  
  164.            u  the file in 2 has authenticity verification and
  165.               apparently encrypted material;
  166.  
  167.                  if the name of a zipfile appears in location 4, then
  168.                  the file in location 2 is contained in that zipfile
  169.  
  170.                  if "z   cs" appears in location 4, then the file in
  171.                  location 2 is a zipfile which contains at least one
  172.                  file which has authenticity verification and at least
  173.                  one file which is apparently encrypted (possibly
  174.                  different files)
  175.  
  176.            v  the file in location 2 is a zipfile which contains at
  177.               least on file which has authenticity verification, and
  178.               does not contain any apparently encrypted file.
  179.  
  180.         4. the name of a zipfile which contains the file named in
  181.            location 2; or
  182.  
  183.              "f cs" indicating that the file in location 2 is not a
  184.                     zipfile
  185.  
  186.            "z   cs" indicating that the file in location 2 is a zipfile
  187.  
  188.         5. may contain a lower_case "v", in which case the file in
  189.            location 4 is a zipfile which contains at least one file
  190.            which has authenticity verification.
  191.  
  192.         6. may contain a drive_letter and colon, e.g., D:, indicating
  193.            that the matching contents_signature which was found belongs
  194.            to a file which may be currently available on the BBS.
  195.  
  196.            if there is no drive letter with colon, that means that the
  197.            contents_signature which was found probably came from a file
  198.            which is not available on the BBS, such as a file which has
  199.            been retired from the system.
  200.  
  201.         (For use of "a" and "v", see Example 3, below).
  202.  
  203.             If we found the matching material in a zipfile, there may
  204.         be special markers that tell you if the zipfile was an
  205.         Authenticity Verification Zipfile (a lower_case "v" to the
  206.         right of the name of the zipfile), and, if it was, whether that
  207.         file inside specifically carried authenticity verification (a
  208.         lower_case "a" to the right of the file inside the zipfile; see
  209.         Example 3, below).
  210.  
  211.             Also, if some of your material was not found, we may tell
  212.         you (in words) if any of the matching material you asked about
  213.         was marked for automatic total exclusion (for example,
  214.         commercial software might be marked for automatic exclusion).
  215.         Whether or not you are told in words, any such exclusion is
  216.         shown by a lower_case "x" in the left column next to each such
  217.         item found. (One reason why you might not be told in words that
  218.         an exclusion was found, is because a match was found for every
  219.         entry in your inquiry list. That would ordinarily cause an
  220.         uploaded file to be rejected, so the question of whether it
  221.         should have been rejected for some other reason would not be
  222.         reached. But, you have that information available to you, in
  223.         response to your remote inquiry via Lookup. Just look in the
  224.         left column for a lower_case "x" next to any one (or more) of
  225.         the items below "found:".)
  226.  
  227.             There may be a special marker to tell you if one or more
  228.         parts of the material you asked about was marked for Wiping
  229.         (automatic removal from uploaded non_AV zipfiles). These are
  230.         marked with a lower_case "w" in the left column next to the
  231.         item found.  For example, known spurious advertisements are
  232.         marked for automatic removal.
  233.  
  234.             We may tell you whether there would be a question as to
  235.         sufficient novelty were you to upload the material you asked
  236.         about. Of course, if you are interested in downloading rather
  237.         than uploading, such a comment does not apply to you, but
  238.         Channel 1 doesn't know the reason for your call.
  239.  
  240.             Other information is also provided.
  241.  
  242.  
  243.         Example 1
  244.         ~~~~~~~~~
  245.  
  246.             Suppose you want to find out if a single, plain (non_zip)
  247.         file is contained in one of the zipfiles we have.
  248.  
  249.            Type   LOOKUP file t43012.zip <enter>
  250.  
  251.            Upload  T43012.ZIP  to Channel 1
  252.  
  253.            Capture the screen to a file for use later, and read the
  254.         message as it comes in.
  255.  
  256.            Here is one example of a message back, where it did not find
  257.         any matching contents_signature:
  258.  
  259.  
  260.             --- contents_signature(s) from the file  T43012.ZIP  which
  261.             you just uploaded were compared with those of prior file(s).
  262.  
  263.             - re your request for a contents_signature search:
  264.  
  265.             - did not find any contents_signature match.
  266.  
  267.             --- the file  T43012.ZIP  has been deleted.
  268.  
  269.  
  270.         (The message you actually receive will address you by name.)
  271.  
  272.         Example 2
  273.         ~~~~~~~~~~
  274.  
  275.         Suppose you do this:
  276.  
  277.             LOOKUP FOO T43005.ZIP <enter>
  278.  
  279.             Upload  T43005.ZIP  to Channel 1
  280.  
  281.         and receive:
  282.  
  283.  
  284.       --- contents_signature(s) from the file  T43005.ZIP  which
  285.       you just uploaded were compared with those of prior file(s).
  286.  
  287.       - re your request for a contents_signature search:
  288.  
  289.       - a contents_signature match was found for each input file;
  290.       the input file(s) might be not ZIPped.
  291.  
  292.       ==============================================================
  293.       > Referring to C:\CS\CSLIST.SRT ------------------------------
  294.       ==============================================================
  295.       6416DCA5     2AB FOO             f cs      C:\CS\CSK\3\1
  296.       did not find cs_match
  297.       ==============================================================
  298.       > Referring to C:\CS\CSLIST1.SRT -----------------------------
  299.       ==============================================================
  300.       6416DCA5     2AB FOO             f cs      C:\CS\CSK\3\1
  301.       found:
  302.        FOOF            f cs      C:
  303.       ==============================================================
  304.  
  305.       --- the file  T43005.ZIP  has been deleted.
  306.  
  307.  
  308.             The "f cs" means that the "file contents_signature" was for
  309.         a plain file.
  310.  
  311.             The "C:" to the right of the item found means that the
  312.         contents_signature entry is not carried forward from a file
  313.         which has been retired. If the file has been retired, its
  314.         contents_signature is normally carried forward without a drive
  315.         letter and without the ":". The contents_ signature continues
  316.         to serve in preventing old material from accidentally being
  317.         accepted as if it were new, and the space left by removing the
  318.         retired file is available for current material. (For instance,
  319.         this may happen when an author issues a revised version of one
  320.         of his/her programs.)
  321.  
  322.  
  323.  
  324.         Example 3
  325.         ~~~~~~~~~
  326.  
  327.         Suppose you do this:
  328.  
  329.             LOOKUP FWKDG108.SNT M.M <enter>
  330.  
  331.             "Upload"  M.M  to your own local system
  332.  
  333.         and receive:
  334.  
  335.  
  336.      --- contents_signature(s) from the file  M.M  which
  337.      you just uploaded were compared with those of prior file(s).
  338.  
  339.      - re your request for a contents_signature search:
  340.  
  341.      - a contents_signature match was found for every contained file, but
  342.      not for zipfile_contents_signature; the contents may have appeared in
  343.      a larger prior ZIP, or been spread among more than one prior ZIPfiles.
  344.  
  345.      ==============================================================
  346.      > Referring to C:\CS\CSLIST.SRT ------------------------------
  347.      ==============================================================
  348.      168CA0F0    295B FWKDG108.SNT  z   cs      C:\ZIPS
  349.      did not find cs_match
  350.      **
  351.      299209E9     B59 FWKDG.COM    FWKDG108.SNT C:\ZIPS
  352.      found:
  353.       FWKDG.COM    FWKDG1A8.ZIP C:
  354.       FWKDG.COM   aFWKCS104.ZIPvC:
  355.      **
  356.      5FB1021A      49 FWKDG108.BAT FWKDG108.SNT C:\ZIPS
  357.      found:
  358.       FWKDG108.BAT FWKDG1A8.ZIP C:
  359.       FWKDG108.BATaFWKCS104.ZIPvC:
  360.      **
  361.      B8783FE7    1ADB FWKDG108.DOC FWKDG108.SNT C:\ZIPS
  362.      found:
  363.       FWKDG108.DOC FWKDG1A8.ZIP C:
  364.      **
  365.      D4D15506     2DE FWKDG108.SCR FWKDG108.SNT C:\ZIPS
  366.      found:
  367.       FWKDG108.SCR FWKDG1A8.ZIP C:
  368.       FWKDG108.SCRaFWKCS104.ZIPvC:
  369.      ==============================================================
  370.      > Referring to C:\CS\CSLIST1.SRT -----------------------------
  371.      ==============================================================
  372.      168CA0F0    295B FWKDG108.SNT  z   cs      C:\ZIPS
  373.      did not find cs_match
  374.      **
  375.      299209E9     B59 FWKDG.COM    FWKDG108.SNT C:\ZIPS
  376.      did not find cs_match
  377.      **
  378.      5FB1021A      49 FWKDG108.BAT FWKDG108.SNT C:\ZIPS
  379.      did not find cs_match
  380.      **
  381.      B8783FE7    1ADB FWKDG108.DOC FWKDG108.SNT C:\ZIPS
  382.      did not find cs_match
  383.      **
  384.      D4D15506     2DE FWKDG108.SCR FWKDG108.SNT C:\ZIPS
  385.      did not find cs_match
  386.      ==============================================================
  387.  
  388.      --- the file  M.M  has been deleted.
  389.  
  390.  
  391.         The items which appear in two columns directly below the word
  392.         "found:" are
  393.  
  394.           if there is a filename in the right column, then it is the
  395.           name of the zipfile which contains the file listed next to it
  396.           in the left column -- the cs_match (contents_signature match)
  397.           was made to the file in the left column.
  398.  
  399.           if there is no filename in the right column, you typically
  400.           will see either
  401.  
  402.               "f cs"   indicating a plain_file contents_signature
  403.  
  404.           or
  405.  
  406.             "z   cs"  indicating a zipfile_contents_signature, in
  407.                       which all the files in a zipfile are taken
  408.                       together in a special way.  (For technical
  409.                       discussion of this, see FWKCS113.DOC.)
  410.  
  411.           In these cases, too, the cs_match is made to the file in the
  412.           left column.
  413.  
  414.  
  415.         Example 4
  416.         ~~~~~~~~~
  417.  
  418.             If you wish to save connect_time in testing whether a file
  419.         or zipfile would be acceptable as an upload to Channel 1, you
  420.         can use Lookup to ask if the contents are already known to us,
  421.         and use the same filename as the one you want to upload later.
  422.         The inquiry file is automatically deleted, so you can use the
  423.         filename again.
  424.  
  425.             Start with the file you want to inquire about in a
  426.         different directory than you are working in. For example,
  427.  
  428.  
  429.             default           <-- where you are now
  430.                |
  431.              sub1\FOO.ZIP     <-- the file you want to get
  432.                                   information about
  433.  
  434.         Type  LOOKUP sub1\foo.zip foo.zip <enter>
  435.  
  436.  
  437.         Then upload this new FOO.ZIP which was created in the default
  438.         directory, to find out whether you should upload the original
  439.         FOO.ZIP.
  440.  
  441.  
  442.         How to use Rcrosref
  443.         ~~~~~~~~~~~~~~~~~~~
  444.  
  445.             You just type
  446.  
  447.                   RCROSREF BBS.CAP T1045.ZIP <enter>
  448.  
  449.             where
  450.                     BBS.CAP    is the full filename and extension of
  451.                                the file you used to capture the BBS's
  452.                                reply to your Lookup
  453.  
  454.                     T1045.ZIP  is any name you want to make up, using
  455.                                the extension .ZIP
  456.  
  457.         If Rcrosref does not find any contents_signature cross_
  458.         reference in the BBS.CAP reply file, it will tell you so, and
  459.         will not make the new inquiry zipfile.
  460.  
  461.         If Rcrosref makes a new inquiry zipfile, just upload it to the
  462.         same BBS, and capture the reply in a new BBS.CAP, etc.
  463.  
  464.           Note: One way of organizing a cross_reference system is to
  465.                 use "nodes" to which many related files are linked. In
  466.                 that case, the first reply to a Lookup inquiry may
  467.                 include a small number of references to one or more
  468.                 such nodes. The first Rcrosref inquiry based on that
  469.                 reply may bring back a large number of cross_references
  470.                 from those nodes which were cited. The second Rcrosref
  471.                 inquiry may then bring back the names of the files
  472.                 (and, if they are contained in zipfiles, the names of
  473.                 zipfiles in which they can be found) for downloading.
  474.                 (The maximum number of input items for a single remote
  475.                 contents_signature search is 512. See Auxiliary
  476.                 Function 5, option i, in FWKCS113.REF.)
  477.  
  478.     -----------------------------------------------------------------------
  479.  
  480.         Technical:
  481.         ~~~~~~~~~~
  482.  
  483.         To support this capability, Channel 1 Communications is running
  484.         FWKCS Version 1.13, with option i (remote Inquiry) active when
  485.         processing uploads.
  486.  
  487.         The flags in the left column are the special Column_17 flags,
  488.         described in FWKCS113.REF.
  489.  
  490.         The contents_signature format, and the meaning of the fcs and
  491.         zcs notation, are explained in FWKCS113.DOC.
  492.  
  493.         The statistical resolution is discussed in FWKCS113.DOC, with
  494.         diagrams.  On Channel 1, this typically has a statistical
  495.         resolution more than two orders of magnitude better than would
  496.         be provided solely by a 32_bit CRC. It removes the CRC effect
  497.         of accidentally mistaking for each other files which have
  498.         different lengths.  Dr. Kantor introduced a new
  499.         contents_signature because the 32_bit CRC does not represent
  500.         enough information to meet the needs of large electronic
  501.         bulletin board systems, for reasons which are explained in
  502.         FWKCS113.DOC.
  503.  
  504.         "Lookup" and "Rcrosref" pass these benefits on to you.
  505.  
  506.